/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Withdraw_products.java
 *
 * Created on 13 ม.ค. 2553, 10:25:59
 */

package store.backend;

/**
 *
 * @author Administrator
 */
public class PnlListBringPro extends javax.swing.JPanel {

    /** Creates new form Withdraw_products */
    public PnlListBringPro() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlListWithdrawProduct = new javax.swing.JPanel();
        lblListWithdrawProduct = new javax.swing.JLabel();
        btnListWithdrawProductSearch = new javax.swing.JButton();
        btnListWithdrawProductAdd = new javax.swing.JButton();
        btnListWithdrawProductEdit = new javax.swing.JButton();
        btnListWithdrawProductCancel = new javax.swing.JButton();
        btnListWithdrawProductCancel1 = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        lblListWithdrawProductIDProduct = new javax.swing.JLabel();
        txfListWithdrawProductIDProduct = new javax.swing.JTextField();
        lblListWithdrawProductType = new javax.swing.JLabel();
        txfListWithdrawProductType = new javax.swing.JTextField();
        lblListWithdrawProductNameProduct = new javax.swing.JLabel();
        txfListWithdrawProductNameProduct = new javax.swing.JTextField();
        jScrollPane1 = new javax.swing.JScrollPane();
        tblListProduct = new javax.swing.JTable();
        txfListWithdrawProductNameProduct1 = new javax.swing.JTextField();
        lblListWithdrawProductNameProduct1 = new javax.swing.JLabel();

        setMaximumSize(new java.awt.Dimension(700, 500));
        setPreferredSize(new java.awt.Dimension(700, 500));
        setLayout(new java.awt.BorderLayout());

        pnlListWithdrawProduct.setBackground(new java.awt.Color(255, 204, 102));
        pnlListWithdrawProduct.setPreferredSize(new java.awt.Dimension(700, 80));

        lblListWithdrawProduct.setFont(new java.awt.Font("Tahoma", 1, 16));
        lblListWithdrawProduct.setText("เบิกสินค้า");

        btnListWithdrawProductSearch.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnListWithdrawProductSearch.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/search_30x30.gif"))); // NOI18N
        btnListWithdrawProductSearch.setMaximumSize(new java.awt.Dimension(75, 30));
        btnListWithdrawProductSearch.setMinimumSize(new java.awt.Dimension(75, 30));
        btnListWithdrawProductSearch.setPreferredSize(new java.awt.Dimension(40, 40));

        btnListWithdrawProductAdd.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnListWithdrawProductAdd.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/add_30x30.gif"))); // NOI18N
        btnListWithdrawProductAdd.setMaximumSize(new java.awt.Dimension(75, 30));
        btnListWithdrawProductAdd.setMinimumSize(new java.awt.Dimension(75, 30));
        btnListWithdrawProductAdd.setPreferredSize(new java.awt.Dimension(40, 40));

        btnListWithdrawProductEdit.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnListWithdrawProductEdit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/edit1_30x30.gif"))); // NOI18N
        btnListWithdrawProductEdit.setMaximumSize(new java.awt.Dimension(75, 30));
        btnListWithdrawProductEdit.setMinimumSize(new java.awt.Dimension(75, 30));
        btnListWithdrawProductEdit.setPreferredSize(new java.awt.Dimension(40, 40));

        btnListWithdrawProductCancel.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnListWithdrawProductCancel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/cancel_30x30.gif"))); // NOI18N
        btnListWithdrawProductCancel.setMaximumSize(new java.awt.Dimension(75, 30));
        btnListWithdrawProductCancel.setMinimumSize(new java.awt.Dimension(75, 30));
        btnListWithdrawProductCancel.setPreferredSize(new java.awt.Dimension(40, 40));

        btnListWithdrawProductCancel1.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnListWithdrawProductCancel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/rfid_30x30.gif"))); // NOI18N
        btnListWithdrawProductCancel1.setMaximumSize(new java.awt.Dimension(75, 30));
        btnListWithdrawProductCancel1.setMinimumSize(new java.awt.Dimension(75, 30));
        btnListWithdrawProductCancel1.setPreferredSize(new java.awt.Dimension(40, 40));

        javax.swing.GroupLayout pnlListWithdrawProductLayout = new javax.swing.GroupLayout(pnlListWithdrawProduct);
        pnlListWithdrawProduct.setLayout(pnlListWithdrawProductLayout);
        pnlListWithdrawProductLayout.setHorizontalGroup(
            pnlListWithdrawProductLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlListWithdrawProductLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlListWithdrawProductLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlListWithdrawProductLayout.createSequentialGroup()
                        .addComponent(btnListWithdrawProductSearch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnListWithdrawProductAdd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnListWithdrawProductEdit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnListWithdrawProductCancel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 470, Short.MAX_VALUE)
                        .addComponent(btnListWithdrawProductCancel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(lblListWithdrawProduct))
                .addContainerGap())
        );
        pnlListWithdrawProductLayout.setVerticalGroup(
            pnlListWithdrawProductLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlListWithdrawProductLayout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addGroup(pnlListWithdrawProductLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(btnListWithdrawProductCancel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(pnlListWithdrawProductLayout.createSequentialGroup()
                        .addComponent(lblListWithdrawProduct)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pnlListWithdrawProductLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(btnListWithdrawProductAdd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnListWithdrawProductEdit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnListWithdrawProductSearch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnListWithdrawProductCancel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        add(pnlListWithdrawProduct, java.awt.BorderLayout.PAGE_START);

        jPanel2.setMaximumSize(new java.awt.Dimension(700, 400));
        jPanel2.setPreferredSize(new java.awt.Dimension(700, 400));

        lblListWithdrawProductIDProduct.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblListWithdrawProductIDProduct.setText("รหัสใบเบิกสินค้า :");

        txfListWithdrawProductIDProduct.setFont(new java.awt.Font("Tahoma", 0, 12));
        txfListWithdrawProductIDProduct.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txfListWithdrawProductIDProductActionPerformed(evt);
            }
        });

        lblListWithdrawProductType.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblListWithdrawProductType.setText("รหัสสินค้า :");

        txfListWithdrawProductType.setFont(new java.awt.Font("Tahoma", 0, 12));
        txfListWithdrawProductType.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txfListWithdrawProductTypeActionPerformed(evt);
            }
        });

        lblListWithdrawProductNameProduct.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblListWithdrawProductNameProduct.setText("ประเภทสินค้า :");

        txfListWithdrawProductNameProduct.setFont(new java.awt.Font("Tahoma", 0, 12));
        txfListWithdrawProductNameProduct.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txfListWithdrawProductNameProductActionPerformed(evt);
            }
        });

        tblListProduct.setFont(new java.awt.Font("Tahoma", 0, 12));
        tblListProduct.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null}
            },
            new String [] {
                "รหัสสินค้า", "ประเภทสินค้า", "ชื่อสินค้า", "จำนวน", "หน่วย", "สถานะสินค้า"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Object.class, java.lang.String.class, java.lang.String.class, java.lang.Integer.class, java.lang.String.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane1.setViewportView(tblListProduct);

        txfListWithdrawProductNameProduct1.setFont(new java.awt.Font("Tahoma", 0, 12));
        txfListWithdrawProductNameProduct1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txfListWithdrawProductNameProduct1ActionPerformed(evt);
            }
        });

        lblListWithdrawProductNameProduct1.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblListWithdrawProductNameProduct1.setText("ชื่อสินค้าสินค้า :");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(35, 35, 35)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(lblListWithdrawProductNameProduct1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txfListWithdrawProductNameProduct1, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(lblListWithdrawProductNameProduct)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txfListWithdrawProductNameProduct, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblListWithdrawProductType, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(lblListWithdrawProductIDProduct, javax.swing.GroupLayout.Alignment.TRAILING))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txfListWithdrawProductIDProduct, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txfListWithdrawProductType, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(420, Short.MAX_VALUE))
            .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 730, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblListWithdrawProductIDProduct)
                    .addComponent(txfListWithdrawProductIDProduct, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblListWithdrawProductType)
                    .addComponent(txfListWithdrawProductType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txfListWithdrawProductNameProduct, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblListWithdrawProductNameProduct))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txfListWithdrawProductNameProduct1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblListWithdrawProductNameProduct1))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 255, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(59, 59, 59))
        );

        add(jPanel2, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents

    private void txfListWithdrawProductIDProductActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txfListWithdrawProductIDProductActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_txfListWithdrawProductIDProductActionPerformed

    private void txfListWithdrawProductNameProductActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txfListWithdrawProductNameProductActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txfListWithdrawProductNameProductActionPerformed

    private void txfListWithdrawProductTypeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txfListWithdrawProductTypeActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_txfListWithdrawProductTypeActionPerformed

    private void txfListWithdrawProductNameProduct1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txfListWithdrawProductNameProduct1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txfListWithdrawProductNameProduct1ActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnListWithdrawProductAdd;
    private javax.swing.JButton btnListWithdrawProductCancel;
    private javax.swing.JButton btnListWithdrawProductCancel1;
    private javax.swing.JButton btnListWithdrawProductEdit;
    private javax.swing.JButton btnListWithdrawProductSearch;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JLabel lblListWithdrawProduct;
    private javax.swing.JLabel lblListWithdrawProductIDProduct;
    private javax.swing.JLabel lblListWithdrawProductNameProduct;
    private javax.swing.JLabel lblListWithdrawProductNameProduct1;
    private javax.swing.JLabel lblListWithdrawProductType;
    private javax.swing.JPanel pnlListWithdrawProduct;
    private javax.swing.JTable tblListProduct;
    private javax.swing.JTextField txfListWithdrawProductIDProduct;
    private javax.swing.JTextField txfListWithdrawProductNameProduct;
    private javax.swing.JTextField txfListWithdrawProductNameProduct1;
    private javax.swing.JTextField txfListWithdrawProductType;
    // End of variables declaration//GEN-END:variables

}
